package com.expdatacloud.service;

import com.expdatacloud.entity.IqcDetectionDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * IQC-检测详情表 服务类
 * </p>
 *
 * @author jie
 * @since 2019-11-19
 */
public interface IqcDetectionDetailService {
    List<IqcDetectionDetail> list(IqcDetectionDetail iqcDetectionDetail);

    int update(IqcDetectionDetail iqcDetectionDetail, String users);

    /**
     * 根据收货单号和行号统计 合格数量抽检数量
     */
    IqcDetectionDetail calculateNumber(@Param("receiptKey") String receiptKey, @Param("sku") String sku);


    /**
     * 下拉框改变的时候刷新 检验明细
     * @param iqcDetectionDetail iqcDetectionDetail
     * @param user 编辑用户
     * @param noOk 根据是否是"拒收"，作为一个标识
     */
    void cleanData(IqcDetectionDetail iqcDetectionDetail,String user,String noOk);
}
